Skip to content

Conversation

@omar-o22
Copy link
Contributor

This PR adds two new Remove all buttons in the Web Browser settings: one to clear all domains from the whitelist and another to clear all domains from the blacklist, It also resizes the buttons for better consistency.
image

@FileEX FileEX added the enhancement New feature or request label Sep 16, 2025
tederis
tederis previously approved these changes Sep 22, 2025
m_pGridBrowserBlacklist->AddColumn(_("Domain"), 0.9f);

m_pButtonBrowserBlacklistRemove = reinterpret_cast<CGUIButton*>(pManager->CreateButton(m_pTabBrowser, _("Remove domain")));
m_pButtonBrowserBlacklistRemove->SetPosition(CVector2D(vecTemp.fX, vecTemp.fY + m_pGridBrowserBlacklist->GetSize().fY + 5.0f));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetPosition & SetSize are again called with different positions futher down below, so these calls here don't seem to have any effect

m_pGridBrowserWhitelist->AddColumn(_("Domain"), 0.9f);

m_pButtonBrowserWhitelistRemove = reinterpret_cast<CGUIButton*>(pManager->CreateButton(m_pTabBrowser, _("Remove domain")));
m_pButtonBrowserWhitelistRemove->SetPosition(CVector2D(vecTemp.fX, vecTemp.fY + m_pGridBrowserWhitelist->GetSize().fY + 5.0f));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants